import 'package:flutter/material.dart';
class SecondPage extends StatelessWidget {
  final String content;
  const SecondPage({Key? key,this.content=""}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(appBar: AppBar(
      leading: IconButton(icon: Icon(Icons.arrow_back), onPressed: () {
        Navigator.pop(context,"返回的参数");
      },),
      title: Text("第二个组件"),
    ),
    body: Container(
      child: Text(
        content,style: TextStyle(
          color: Colors.red,
          fontSize: 30,
          fontWeight: FontWeight.bold
      ),
      ),
    ),);
  }
}
